package com.hdaccp.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hdaccp.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/user")
public class UserController {
    @Reference(interfaceName="com.hdaccp.UserService")
    private UserService userService ;
    @RequestMapping("/saveUser")
    public String saveUser(){
        userService.save();
        return "success" ;
    }
}
